Align MCP schema validation: remove "remote" from generic types, enforce strict properties #11725
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Schema inconsistency between
main_workflow_schema.jsonandmcp_config_schema.json: the main schema's generic MCP tool definition incorrectly included"remote"in type/mode enums and used permissiveadditionalProperties: true, while the MCP config schema correctly restricted types and enforced strict validation.Changes
Removed
"remote"from generic MCP type/mode enums (lines ~3430, ~3435)"remote"is GitHub-tool specific (tools.github.mode), not a valid generic MCP server typestdio,http,localValidMCPTypes = ["stdio", "http", "local"]Enforced strict validation (line ~3475)
additionalProperties: true→falsein generic MCP tool definitionmcp_config_schema.json,stdio_mcp_tool, andhttp_mcp_toolAdded schema documentation
$commentfields explain type restrictions and validation rationaleSchema consistency
All MCP configurations now use uniform validation:
mcp_config_schema.jsonfalsestdio, http, localstdio_mcp_toolfalsestdio, localhttp_mcp_toolfalsehttpfalse✓stdio, http, local✓local, remoteBinary rebuilt to embed updated schemas.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.